package com.example.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.service.Persions;

@RestController
public class HelloController {
  @GetMapping("/hello")
  public String hello(@RequestParam(value = "name", defaultValue = "World") String name) {
      User u=new User();
      u.name="张三丰wwwwwww";
      u.address="兰州市";

      Persions p=new Persions();
      return String.format("Hello11"+u.name+u.address+"cc1111 %s!"+u.say("日本是中国的")+p.say("sssssssssss"), name);
  }
}
